import request from '@/utils/request'

// export function loginAPI(data) {
//   return request({
//     url: '/sys/login',
//     method: 'post',
//     data
//   })
// }
export const loginAPI = (data) => request.post('sys/login', data)

export const getUserInfoAPI = () => request.get('/sys/profile')

export const updatePasswordAPI = (data) => request.put('/sys/user/updatePass', data)
